package com.example.springboot_mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author linruhai
 * @date 2021/10/8 - 23:19
 */
@Data
@TableName(value = "user")
public class User implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)//指定自增策略
    private long id;
    private String name;
    private Integer age;
    private String email;
}
